/*
 * serialize.hpp
 *
 *  Created on: 2012-9-26
 *      Author: Administrator
 */

#ifndef SERIALIZE_HPP_
#define SERIALIZE_HPP_


/*
 * serialize.cpp
 *
 *  Created on: 2012-9-26
 *      Author: Administrator
 */

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <libxml/parser.h>

#include "protocolMaker.hpp"

enum SERIALIZE_TYPE {
	SERIALIZE_TYPE_TYPE ,
	SERIALIZE_TYPE_REQUEST ,
	SERIALIZE_TYPE_RESPOND ,
};

void toUpperCase( char* str ) ;
//void firstToUpperCase( char* str ) ;
//void firstToUpperCase2( const char* str , char* to ) ;

int makeType( ProtocolModule* module , xmlNode* node ) ;
int makeRequest( ProtocolModule* module , xmlNode* node ) ;
int makeRespond( ProtocolModule* module , xmlNode* node ) ;




#endif /* SERIALIZE_HPP_ */
